<div class="main-view">
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">用户情值</strong></div>

    <form class="am-form-inline left-margin top-margin" role="form">

        <!--<div class="city-cascading" style="display: inline-block;" id="cascad-search"></div>-->
        <div class="top-margin">
            <label>小区</label> <input type="text" class="am-form-field" style="width: 216px" ng-model="option.communityName">
            <label>用户ID</label> <input type="text" class="am-form-field" style="width: 216px" ng-model="option.userId">
            <label class="left-margin">昵称</label> <input type="text" class="am-form-field" ng-model="option.nickName">
            <label>手机号</label> <input type="text" class="am-form-field" ng-model="option.phone">

            <button type="submit" class="am-btn am-btn-primary left-margin" ng-click="search(option, $event)"
                    >搜索
            </button>
        </div>
    </form>
    <br>
    <div id="pagination" class="pagination"></div>
    <div class="pagination-table left-margin" id="tab_menu" style = "margin-top: 0px;">
        <form class="am-form">
            <table class="am-table am-table-striped am-table-hover table-main">
                <thead>
                <tr>
                    <th class="table-check"><input type="checkbox" ng-click="allSelected()"></th>
                    <th class="table-title">小区</th>
                    <th class="table-id">用户ID</th>
                    <th class="table-title">昵称	</th>
                    <th class="table-title">手机号码</th>
                    <th class="table-title">单元号</th>
                    <th class="table-title">房号</th>
                    <th class="table-title">总积分</th>
                    <th class="table-title">已使用积分</th>
                    <th class="table-title">剩余积分</th>
                    <!--<th class="table-title">达人描述</th>-->
                    <!--<th class="table-title">明细</th>-->
                    <th class="table-title">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="result in userList">
                    <td class="table-check"><input type="checkbox" class = "item-check"></td>
                    <td>{{result.communityName}}</td>
                    <td>{{result.objId}}</td>
                    <td>{{result.nickName}}</td>
                    <td>{{result.mobilePhone}}</td>
                    <td>{{result.roomUnit?result.roomUnit:""}}</td>
                    <td>{{result.roomNumber}}</td>
                    <td>{{result.totalValue}}</td>
                    <td>{{result.totalValue - result.currentValue}}</td>
                    <td>{{result.currentValue}}</td>
                    <!--<td> <a  data-am-modal="{target:'#doc-modal-reply-{{$index}}', width: 1200, height: 600}">查看</a></td>-->
                    <td>
                        <div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary" ng-click="scoreAddModal(result)" ><span class="am-icon-copy"></span> 添加情值</button>
                                <button type="button" class="am-btn am-btn-default am-btn-xs am-hide-sm-only" ng-click="showDetail(result)" >查看明细</button>
                            </div>
                        </div>
                    </td>
                </tr>
                </tbody>

            </table>
        </form>
    </div>
    <div class = "left-margin">共<span id = 'page_number'>{{pageNumber}}</span>页 <span>{{count}}条数据</span></div>

    <!--情值添加-->
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="doc-modal-add">
        <div class="am-modal-dialog">
            <div class="am-modal-hd border-bottom" style = "text-align: left;">添加情值
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <br>
            <div class="am-modal-bd body-area text-left">
                <label style="width: 58px">数量:</label><input class="modal-input" type="number" ng-model="score">
                <form>
                    <label>添加积分原因：</label><br>
                    <textarea style="width:500px;height:150px;" ng-model="rason" required tabindex="5"></textarea>
                </form>
            </div>
            <div class = "button-area border-top">
                <button type="button"  class="am-btn am-btn-success right-margin top-margin" ng-show="true" ng-click="scoreAdd(score,rason)" data-target = "cascad-search-add">确认</button>
            </div>

        </div>
    </div>

</div>